package com.ydj.app.entity.query;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ydj.app.entity.Kol;
import com.ydj.framework.mysql.BaseQuery;
import com.ydj.framework.mysql.MysqlSort;

import java.util.List;


public class KolQuery extends BaseQuery<Kol> {
    public KolQuery(IService<Kol> service) {
        super(service);
    }

    public KolQuery id(Long id) {
        eq(Kol::getId, id);
        return this;
    }

    public KolQuery ids(List<Long> value) {
        in(Kol::getId, value);
        return this;
    }

    public KolQuery name(String value) {
        eq(Kol::getName, value);
        return this;
    }
    public KolQuery nameLike(String value) {
        like(Kol::getName, value);
        return this;
    }

    public KolQuery account(String value) {
        like(Kol::getAccount, value);
        return this;
    }

    public KolQuery accountLike(String value) {
        like(Kol::getAccount, value);
        return this;
    }

    public KolQuery orderByCreateTime(MysqlSort sort) {
        orderBy(Kol::getCreateTime, sort);
        return this;
    }
}